function setJSVersion() {
	
	var dev_mode = true;
	
	var jQ_version = "1.4.4";
	
	var jQ_UI_version = "1.8.7";
	
	var pathtojsfiles = "script/"; // need to be ajusted
	var modules = [
        { include: true, incfile:'jquery-' + jQ_version + '.min.js'}, 
        { include: true, incfile:'jquery-ui-' + jQ_UI_version + '.custom.min.js'} 
//        { include: true, incfile:'jqGrid/i18n/grid.locale-en.js'}, 
//        { include: true, incfile:'jqGrid/grid.loader.js'}, 
//        { include: true, incfile:'ui-layout/jquery.layout-latest.js'}, 
//        { include: true, incfile:'ui-layout/complex.js'}
    ];
	
	IncludeCSS('themes/smoothness/jquery-ui-' + jQ_UI_version + '.custom.css');
	
	var filename;
    for(var i=0;i<modules.length; i++) {
        if(modules[i].include === true) {
        	filename = modules[i].incfile;
			if(dev_mode) filename = filename.replace(".min", "");
   			IncludeJavaScript(pathtojsfiles + filename);
        }
    }

	function IncludeCSS(cssFile) {
        var oHead = document.getElementsByTagName('head')[0];
        var oCSS = document.createElement('link');
        oCSS.type = 'text/css';
        oCSS.rel = 'stylesheet';
        oCSS.href = cssFile;
        oHead.appendChild(oCSS);        
    };

	function IncludeJavaScript(jsFile) {
        var oHead = document.getElementsByTagName('head')[0];
        var oScript = document.createElement('script');
        oScript.type = 'text/javascript';
        oScript.charset = 'utf-8';
        oScript.src = jsFile;
        oHead.appendChild(oScript);        
    };
}

setJSVersion();
